<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trade_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-trade_no" data-rule="required" class="form-control form-control" name="row[trade_no]" type="text" value="{$row.trade_no}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_user_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-buy_user_id" data-rule="required" data-source="buy/user/index" class="form-control selectpage form-control" name="row[buy_user_id]" type="text" value="{$row.buy_user_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-buy_username" data-rule="required" class="form-control form-control" name="row[buy_username]" type="text" value="{$row.buy_username}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_trade_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-buy_trade_id" data-rule="required" data-source="buy/trade/index" class="form-control selectpage form-control" name="row[buy_trade_id]" type="text" value="{$row.buy_trade_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-buy_num" data-rule="required" class="form-control form-control" name="row[buy_num]" type="number" value="{$row.buy_num}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_user_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_user_id" data-rule="required" data-source="sell/user/index" class="form-control selectpage form-control" name="row[sell_user_id]" type="text" value="{$row.sell_user_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_username" data-rule="required" class="form-control form-control" name="row[sell_username]" type="text" value="{$row.sell_username}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_trade_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_trade_id" data-rule="required" data-source="sell/trade/index" class="form-control selectpage form-control" name="row[sell_trade_id]" type="text" value="{$row.sell_trade_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_num" data-rule="required" class="form-control form-control" name="row[sell_num]" type="number" value="{$row.sell_num}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Exch_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-exch_rate" data-rule="required" class="form-control form-control" step="0.01" name="row[exch_rate]" type="number" value="{$row.exch_rate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Finishtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-finishtime" data-rule="required" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[finishtime]" type="text" value="{$row.finishtime|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Action')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-action" data-rule="required" class="form-control form-control" name="row[action]" type="text" value="{$row.action}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Symbol')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-symbol" data-rule="required" class="form-control form-control" name="row[symbol]" type="text" value="{$row.symbol}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tosymbol')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tosymbol" data-rule="required" class="form-control form-control" name="row[tosymbol]" type="text" value="{$row.tosymbol}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="required" class="form-control form-control" size="50" name="row[image]" type="text" value="{$row.image}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
